﻿using Microsoft.EntityFrameworkCore;
using SimpleWebApi.Model.Enum;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleWebApi.Model.Entity
{
    public class UserEntity:BaseEntity
    {

        /// <summary>
        /// 用户编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [Comment("主键ID")]
        public int Id { get; set; }


        /// <summary>
        /// 用户名
        /// </summary>
        [MaxLength(64)]
        [Comment("用户名")]
        public string UserName { get; set; }


        /// <summary>
        /// 用户密码
        /// </summary>
        [MaxLength(64)]
        [Comment("密码，md5")]
        public string Password { get; set; }

        /// <summary>
        /// 用户类型
        /// </summary>
        public UserType type { get; set; }

    }
}
